; filelog - log all actions performed on any files
; copyright abandoned 2000,  Kiwi Software (Luke Graham)
; Version 0.0.3,  last updated 23/02/2000 (lrg)

; OS_GBPB entry point look up tables

 AREA	|osGBPBData|, DATA, READONLY

osGBPBCTableStartOffset DCD	osGBPBCTableStartOffset
osGBPBConditionTable	DCD	-1
			DCD	_osGBPB1
			DCD	_osGBPB2
			DCD	_osGBPB3
			DCD	_osGBPB4
			DCD	_osGBPB5
			DCD	_osGBPB6
			DCD	_osGBPB7
			DCD	_osGBPB8
			DCD	_osGBPB9
			DCD	_osGBPB10
			DCD	_osGBPB11
			DCD	_osGBPB12

_osGBPB1		DCB	"OS_GBPB called - Reason code 1  (Write bytes to given pointer)",0
			ALIGN

_osGBPB2		DCB	"OS_GBPB called - Reason code 2  (Write bytes to current pointer)",0
			ALIGN

_osGBPB3		DCB	"OS_GBPB called - Reason code 3  (Read bytes from given pointer)",0
			ALIGN

_osGBPB4		DCB	"OS_GBPB called - Reason code 4  (Read bytes from current pointer)",0
			ALIGN

_osGBPB5		DCB	"OS_GBPB called - Reason code 5  (Read name and boot options)",0
			ALIGN

_osGBPB6		DCB	"OS_GBPB called - Reason code 6  (Read current dir and privilege byte)",0
			ALIGN

_osGBPB7		DCB	"OS_GBPB called - Reason code 7  (Read library dir and privilege byte)",0
			ALIGN

_osGBPB8		DCB	"OS_GBPB called - Reason code 8  (Read entries from current directory)",0
			ALIGN

_osGBPB9		DCB	"OS_GBPB called - Reason code 9  (Read entries from given directory)",0
			ALIGN

_osGBPB10		DCB	"OS_GBPB called - Reason code 10 (Read entries and info from given directory)",0
			ALIGN

_osGBPB11		DCB	"OS_GBPB called - Reason code 11 (Read entries and full info from given directory)",0
			ALIGN

_osGBPB12		DCB	"OS_GBPB called - Reason code 12 (Read entries and full info with filetype from given directory)",0
			ALIGN

GBPBVUnKnownS		DCB	"OS_GBPB called with unknown reason code (%7d)",0
			ALIGN

osGBPBRTableStartOffset DCD	osGBPBRTableStartOffset
osGBPBRegsTable		DCD	-1
			DCD	GBPBV1S
			DCD	GBPBV2S
			DCD	GBPBV3S
			DCD	GBPBV4S
			DCD	GBPBV5S
			DCD	GBPBV5S		;reuse
			DCD	GBPBV5S		;reuse
			DCD	GBPBV8S
			DCD	GBPBV9S
			DCD	GBPBV9S		;reuse
			DCD	GBPBV9S		;reuse
			DCD	GBPBV9S		;reuse

GBPBV1S			DCB	"file handle (r1) = 0x%8x  buffer address (r2) = 0x%9x  bytes to write (r3) = 0x%10x  file pointer (r4) = 0x%11x",0
			ALIGN

GBPBV2S			DCB	"file handle (r1) = 0x%8x  buffer address (r2) = 0x%9x  bytes to write (r3) = 0x%10x",0
			ALIGN

GBPBV3S			DCB	"file handle (r1) = 0x%8x  buffer address (r2) = 0x%9x  bytes to read (r3) = 0x%10x  file pointer (r4) = 0x%11x",0
			ALIGN

GBPBV4S			DCB	"file handle (r1) = 0x%8x  buffer address (r2) = 0x%9x  bytes to read (r3) = 0x%10x",0
			ALIGN

GBPBV5S			DCB	"buffer address (r2) = 0x%9x",0
			ALIGN

GBPBV8S			DCB	"buffer address (r2) = 0x%9x  number of objects (r3) = 0x%10x  offset of first (r4) = 0x%11x",0
			ALIGN

GBPBdirNameS		DCB	"directory name = '%8s'",0
			ALIGN

GBPBmatchNameS		DCB	"name to match = '%6s'",0
			ALIGN

GBPBV9S			DCB	"buffer address (r2) = 0x%9x  number of objects (r3) = 0x%10x  offset of first (r4) = 0x%11x  buffer length (r5) = 0x%5x",0
			ALIGN

 END
